package com.palfund.touchevent;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

/**
 * Created by clvc on 2017/8/9.
 * 真正的速度是看不见的 !
 * Today is today , we will go !
 */

public class BigView extends RelativeLayout {
    public BigView(Context context) {
        super(context);
    }

    public BigView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public BigView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }



    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.i("BigView", "---dispatchTouchEvent()--->" + ev.getAction());
        return super.dispatchTouchEvent(ev);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        Log.i("BigView", "---onInterceptTouchEvent()--->"+ev.getAction());
        return super.onInterceptTouchEvent(ev);
    }
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.i("BigView", "---onTouchEvent()--->" + event.getAction());
        return super.onTouchEvent(event);
    }
}
